package com.wocharging.back.admin.web.controller.order;

import com.wocharging.back.common.core.controller.BaseController;
import com.wocharging.back.common.core.domain.AjaxResult;
import com.wocharging.back.order.service.OredrService;
import com.wocharging.base.domain.WoOrder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api("订单")
@RestController
@RequestMapping("/order/cashDetail")
public class OredrController extends BaseController {

    @Autowired
    OredrService oredrService;

    @GetMapping("/list")
    @ApiOperation("订单列表")
    public AjaxResult list() {
        List<WoOrder> orderList = oredrService.getOrderList();
        return success(orderList);
    }

}
